NotEmptySet
Deprecated
Use the kotools.types.NotEmptySet type instead.
Replace with
import kotools.types.NotEmptySet
NotEmptySet
Representation of sets that contain at least one element.
Parameters
The type of elements contained in this set.
Functions
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the string representation of this collection as a NotBlankString.
Properties
Extensions
Returns the element at the specified index in this collection, or returns the result of calling the defaultValue function if the index is out of bounds.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.